﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace DiscMaster.Web.Models
{
    [MetadataType(typeof(Match_MetaData))]
    public partial class Match
    {
    }
    internal class Match_MetaData
    {
        [ScaffoldColumn(false)]
        public System.Guid matchid { get; set; }

        [ScaffoldColumn(false)]
        [DisplayName("Course")]
        [UIHint("Course")]
        public System.Guid courseid { get; set; }

        [ScaffoldColumn(false)]
        [DisplayName("Course layout")]
        [UIHint("CourseLayout")]
        public System.Guid layoutid { get; set; }

        [ScaffoldColumn(false)]
        public System.Guid createdby { get; set; }

        [DataType(DataType.Date)]
        [DisplayName("Match date")]
        [Required(ErrorMessage = "Match date is required")]
        public DateTime matchdate { get; set; }

        [DisplayName("Description")]
        [DataType(DataType.MultilineText)]
        public string description { get; set; }

        [DisplayName("Match name")]
        [Required(ErrorMessage="Name is required")]
        public string name { get; set; }
    }
}
